# 1、设计一个类
class Student:
    name = None  # 姓名
    gender = None  # 性别
    nationality = None  # 国际
    native_place = None  # 籍贯
    age = None  # 年龄
    def say_hi(self):
        print(f"Hi大家好，我是{self.name}")


# 2、创建一个对象
stu_1 = Student()

# 3、对象属性赋值
stu_1.name = "张三"
stu_1.gender = "男"
stu_1.nationality = "中国"
stu_1.native_place = "山东"
stu_1.age = 31

# 4、获取对象中的信息
print(stu_1.name)
print(stu_1.gender)
print(stu_1.nationality)
print(stu_1.native_place)
print(stu_1.age)
stu_1.say_hi()